#include <QWidget>

class QSlider;
class QLabel;
class QLineEdit;
class QString;

class Range : public QWidget 
{
Q_OBJECT
public:
	Range(QWidget *parent = 0);
	Range(const QString &text, QWidget *parent = 0);
	int value();

public slots:
	void setValue(int value);
	void setValue(const QString &value);
	void setText(const QString &text);
	void setRange(int lower, int higher);

signals:
	void valueChanged(int value);

private:
	void init();
	
	QSlider *slider;
	QLabel *label;
	QLineEdit *number;
};
